(当通过Android Studio 3.5和3.6 Canary 9启动Android模拟器(Q API 29)时,(Vulkan 1.0 APIs从实例中丢失)。

您所在的位置:网站首页 android studio 缺少sdk (当通过Android Studio 3.5和3.6 Canary 9启动Android模拟器(Q API 29)时,(Vulkan 1.0 APIs从实例中丢失)。

(当通过Android Studio 3.5和3.6 Canary 9启动Android模拟器(Q API 29)时,(Vulkan 1.0 APIs从实例中丢失)。

2023-04-14 16:31| 来源: 网络整理| 查看: 265

百度翻译此文   有道翻译此文 问题描述

I created three AVDs base on Android Q (API 29), using these system images: Android 10(Google Play), Android 10(Google APIs), Android 10.

All of these emulators failed to launch. With the following error:

18:38 Emulator: VK_VERSION_1_0 check failed: vkCreateInstance not found 18:38 Emulator: VK_VERSION_1_0 check failed: vkEnumerateInstanceExtensionProperties not found 18:38 Emulator: VK_VERSION_1_0 check failed: vkEnumerateInstanceLayerProperties not found 18:38 Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance 18:38 Emulator: Process finished with exit code 0

I have referred to this link: Emulator: Unexpected feature list: MultiDisplay VulkanNullOptionalStrings YUV420888toNV21 YUVCache But this issue is different from my issue.

I tried in Android Studio 3.5, and Android Studio 3.6 Canary 9, the latest version in stable and preview channel. Both end with the same result.

https://source.android.google.cn/devices/graphics/implement-vulkan According to this page, Vulkan 1.0 should already exists since Android 7.0, I have no idea why Vulkan 1.0 is missing on Android 10.

Or should I just wait for the newer version of system image after Google officially release Android 10?

推荐答案

I had the same issue on my system - Ubuntu 19.10 and Android Studio 3.5.3. Except I had a "Vulkan 1.1 APIs missing from instance" error and my emulator was running slow.

The issue is not with the emulator, it's with your host system. Your host system doesn't have support for the Vulkan APIs that the new Android 10 emulator uses.

To fix this, I had to install a newer version of the mesa packages from a third-party PPA.

The steps to do so:

run sudo add-apt-repository ppa:kisak/kisak-mesa to add the PPA to your system.

run sudo apt update and then sudo apt upgrade. This should download and install the newer mesa packages from the PPA.

I rebooted my system just to be safe, and the emulator runs fine and smooth now.

其他推荐答案

I'm not sure why that's happening (it was happening to me to using API 29). I cloned the device in the AVD Manager and dropped the API down to 28 (Pie, Android 9) and I was able to successfully launch my app again.

其他推荐答案

I had similar issues that were not fixed with the installation hints above.

I finally solved the problem following this instructions to Configure VM acceleration on Linux: https://help.ubuntu.com/community/KVM/Installation

My problem turned out to be wrong user-groups configuration. The following commands finally made it work for me:

$ sudo adduser libvirtd

$ sudo chown root:libvirtd /dev/kvm



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3